package StrategyMode.version4;

/**
 * Created by ycq on 2018/10/18.
 */
public class Main {
    /**
     * 由于实例化不同的策略，所以最终再调用context.ContextInterface();时，所获得的结果就不尽相同
     * @param args
     */
    public static void main(String[] args) {
        Context context;
        context=new Context(new ConcreteStrategyA());
        context.ContextInterface();
        context=new Context(new ConcreteStrategyB());
        context.ContextInterface();
        context=new Context(new ConcreteStrategyC());
        context.ContextInterface();
    }

}
